package jie.service;

import jie.pojo.Account;
import jie.pojo.Record;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface InfoService {

    Account login(@Param("cardNo") String cardno,String password);

    Account getByCardNo(String cardNo);

    void transfer(String cardNo1,String cardNo2,double balance);

    List<Record> getAllRecord(@Param("start")String start,
                              @Param("end")String end,String cardNo,
                              @Param("pageNo") int pageNo,
                              @Param("pageSize")int pageSize);

    int getCount(@Param("start")String start,
                 String cardNo,
                 @Param("end")String end);

    int updatePwd(@Param("cardNo")String cardNo,@Param("password") String password);
}
